<?php

namespace app\modules\pay\services;

use app\common\services\BaseService;
use app\models\Merchant;
use app\models\MerchantPayment;

class MerchantService extends BaseService{

    /**
     * 获取信息
     * @param $id
     * @return null|Merchant
     */
    public static function getInfoById($id){
        return Merchant::findOne($id);
    }

    /**
     * 获取支付配置
     * @param $id
     * @return MerchantPayment|null
     */
    public static function getPaymentById($id){
        return MerchantPayment::findOne($id);
    }
}